//
//  CommonTools.swift
//  weibo.chb
//
//  Created by 褚红彪 on 16/1/21.
//  Copyright © 2016年 chuhongbiao. All rights reserved.
//

import UIKit
func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1.0)
}
func randomColor() -> UIColor{
    return RGB(red: CGFloat(random() % 256), green: CGFloat(random() % 256), blue: CGFloat(random() % 256))
}